<?php
/**
 * Formulaire de creation d'un contact
 * @author Etienne AUDOUIN <etienne.audouin@ingesup.com>
 * @author Adrien MARIANELLI <adrien.marianelli@ingesup.com>
 * @version 1.0
 * @package view_contact_create
 */

$formAttributes = array ('id' => 'form_createContact');

echo form_fieldset('Create a new contact');
echo form_open('webnews/createContact', $formAttributes);
echo '<table id="table_createContact">';
// name
$data = array(
    'name'        => 'contactName',
    'id'          => 'input_contactName');
echo '<tr>';
echo '<th>Name</th>';
echo '<td>'.form_input($data).'</td>';
echo '</tr>';

// first name
$data = array(
    'name'        => 'contactFirstName',
    'id'          => 'input_contactFirstName');

echo '<tr>';
echo '<th>First Name</th>';
echo '<td>'.form_input($data).'</td>';
echo '</tr>';

// mail
$data = array(
    'name'        => 'contactMail',
    'id'          => 'input_contactMail');

echo '<tr>';
echo '<th>Mail</th>';
echo '<td>'.form_input($data).'</td>';
echo '</tr>';
echo '</table>';

echo form_submit(null, 'Create');
echo form_close();
echo form_fieldset_close();
?>